﻿namespace Data.ViewModel
{
    /// <summary>
    /// 消费展示类
    /// </summary>
    public class ConsumeView
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int Serial { get; set; }

        /// <summary>
        /// 消费人员
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// cpu卡id
        /// </summary>
        public string CpuId { get; set; }

        /// <summary>
        /// 消费金额
        /// </summary>
        public string ConsumeMoney { get; set; }

        /// <summary>
        /// 信用金额
        /// </summary>
        private string CreditMoney { get; set; }

        /// <summary>
        /// 终端机编号
        /// </summary>
        private string TerminalId { get; set; }

        /// <summary>
        /// 停车点名称
        /// </summary>
        public string LockAddress { get; set; }

        /// <summary>
        /// 消费时间
        /// </summary>
        public string ConsumeTime { get; set; }
    }

    /// <summary>
    /// consumeview用于卡消费展示了，新建一个展示对象用于数据库中消费信息展示
    /// </summary>
    public class ConsumeViewForDb
    {
        /// <summary>
        /// 序号
        /// </summary>
        public int Serial { get; set; }

        /// <summary>
        /// 消费人员
        /// </summary>
        public string UserName { get; set; }

        /// <summary>
        /// cpu卡id
        /// </summary>
        public string CpuId { get; set; }

        /// <summary>
        /// 车辆id
        /// </summary>
        public string BikeId { get; set; }

        /// <summary>
        /// 消费金额
        /// </summary>
        public string ConsumeMoney { get; set; }

        /// <summary>
        /// 借车时间
        /// </summary>
        public string StartTime { get; set; }

        /// <summary>
        /// 还车时间
        /// </summary>
        public string EndTime { get; set; }

        /// <summary>
        /// 借车锁柱
        /// </summary>
        public string LendPsam { get; set; }

        /// <summary>
        /// 还车锁柱
        /// </summary>
        public string BackPsam { get; set; }

        /// <summary>
        /// 状态
        /// </summary>
        public string Status { get; set; }

        /// <summary>
        /// 信用金额
        /// </summary>
        private string CreditMoney { get; set; }

        /// <summary>
        /// 终端机编号
        /// </summary>
        private string TerminalId { get; set; }

        /// <summary>
        /// 停车点名称
        /// </summary>
        private string LockAddress { get; set; }

        /// <summary>
        /// 消费时间
        /// </summary>
        private string ConsumeTime { get; set; }
    }
}
